package com.kingdee.eas.jky.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.dao.IObjectValue;



public abstract class AbstractJkyHeperFacadeControllerBean extends AbstractBizControllerBean implements JkyHeperFacadeController
{
    protected AbstractJkyHeperFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("3B0DB4AA");
    }

    public void subMaterial(Context ctx, IObjectValue object) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f14843f6-f4ed-4006-b722-a3081e22041c"), new Object[]{ctx, object});
            invokeServiceBefore(svcCtx);
            _subMaterial(ctx, object);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _subMaterial(Context ctx, IObjectValue object) throws BOSException;

    public void backMaterial(Context ctx, IObjectValue object) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7685ae6b-baf6-49e1-abc0-96d460c7ef07"), new Object[]{ctx, object});
            invokeServiceBefore(svcCtx);
            _backMaterial(ctx, object);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _backMaterial(Context ctx, IObjectValue object) throws BOSException;

    public String getProjectTypeNumber(Context ctx, IObjectValue object) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7a03436a-8d82-4662-ab34-df8f152a4e2a"), new Object[]{ctx, object});
            invokeServiceBefore(svcCtx);
            String retValue = (String)_getProjectTypeNumber(ctx, object);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract String _getProjectTypeNumber(Context ctx, IObjectValue object) throws BOSException;

    public void updateCluesMassage(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("987a84f9-2e4c-4cad-85b0-4d951d2b0176"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _updateCluesMassage(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _updateCluesMassage(Context ctx) throws BOSException;

    public void cshNBJY(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("202e8379-605d-4ed3-9653-c2a6e2944ffa"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _cshNBJY(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _cshNBJY(Context ctx) throws BOSException;

    public void cshWgZq(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6a62fbbe-87a6-45d4-94d2-05ed1b750942"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _cshWgZq(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract void _cshWgZq(Context ctx) throws BOSException;

}